import request from '@/utils/request'

export default {

  getList: function(params) {
    return request({
      url: '/sysDict/list',
      method: 'get',
      params
    })
  },

  save: function(data) {
    return request({
      url: '/sysDict/add',
      method: 'post',
      data
    })
  },

  update: function(data) {
    return request({
      url: '/sysDict/update',
      method: 'post',
      data
    })
  },

  remove: function(id) {
    return request({
      url: '/sysDict/delete/'+id,
      method: 'get'
    })
  },
  getDicts: function(dictName) {
    return request({
      url: '/sysDict/getDicts/'+dictName,
      method: 'get'
    })
  }
}
